// 通用响应接口
export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T;
  request_id?: string;
}

// 任务结果的具体数据结构
export interface TaskResult {
  status_code: number;
  request_id: string;
  code: string;
  message: string;
  output: {
    task_id: string;
    task_status: string;
    results: Array<{ url: string }>;
  };
  usage: {
    image_num: number;
  };
}

// 扩图参数接口
export interface OutpaintingParams {
  angle: number;
  output_ratio: string;
  x_scale: number;
  y_scale: number;
  top_offset: number;
  bottom_offset: number;
  left_offset: number;
  right_offset: number;
  best_quality: boolean;
  limit_image_size: boolean;
  add_watermark: boolean;
}

// 扩图任务请求体接口
export interface OutpaintingTaskPayload {
  model: string;
  input: {
    image_url: string;
  };
  parameters: OutpaintingParams;
}
